package com.buba.springcloud.service;

import com.buba.springcloud.entities.HfCoupon;
import com.buba.springcloud.entities.HfCouponReceiveRecord;
import com.buba.springcloud.entities.HfCouponUseRecord;

import java.util.List;

/**
 * @Author taodeyu
 * @Date 2022/1/6 下午 2:38
 * @Version 1.0
 */
public interface CouponService {
    List<HfCoupon> getAllCoupon();

    List<HfCouponReceiveRecord> getAllReceiveRecordByCoupon(Integer id);

    List<HfCouponUseRecord> getAllUseRecordByCoupon(Integer id);

    Integer saveCoupon(HfCoupon hfCoupon);

    Integer alterSwitch(HfCoupon hfCoupon);

    Integer updateCoupon(HfCoupon hfCoupon);
}
